<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试js的replace.html</title>
</head>
<body>
    <script type="text/javascript">
         a="#test1=222".replace(/^#test1=/, '');
        alert(a)
    </script>
</body>
</html>